﻿<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Settings.aspx.cs" Inherits="AIS.SharePoint.AspNetFBA.Layouts.AIS.SharePoint.AspNetFBA.Settings" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Label ID = "lblSetupStatus" runat="server" Text = "" ForeColor="Red"  Font-Bold="true"/>
    <table width="740" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
        <wssuc:InputFormSection ID = "sectionGeneralSettings" runat="server">
            <Template_Title>
                <asp:Literal runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_Section_GeneralSettings_Title%>" />
            </Template_Title>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server">
                    <Template_Control>
                        <asp:CheckBox ID="chkAutoGenPassword" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_chkAutoGenPassword_Text%>"/></br>
                        <asp:CheckBox ID="chkAutoGenWelcomeEMail" runat="server" autopostback="true" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_chkAutoGenWelcomeEMail_Text%>"/></br>
                        <asp:CheckBox ID="chkEnablePasswordReset" runat="server" AutoPostBack="true"  Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_chkEnablePasswordReset_Text%>"/>
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection ID="sectionWelcomeEMailSettings" runat="server">
            <Template_Title>
               <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_Section_WelcomeEMailSettings_Title%>" />
            </Template_Title> 
            <Template_Description>
               <asp:Literal ID="Literal2" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_Section_WelcomeEMailSettings_Description%>" />
            </Template_Description>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailSubjectLine_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" Columns="40" ID="txtWelcomeEMailSubjectLine" CausesValidation="true"/>
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="false" ControlToValidate="txtWelcomeEMailSubjectLine" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailSubjectLine_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailBody_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" Columns="40" rows="10" TextMode = "MultiLine" RichText="false" ID="txtWelcomeEMailBody" />
                        <asp:CheckBox runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailIsHTML_Text%>" ID="chkWelcomeEMailIsHTML"/>
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="false" ControlToValidate="txtWelcomeEMailBody" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailBody_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection ID="sectionResetEMailContent" runat="server">
            <Template_Title>
               <asp:Literal ID="Literal3" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_Section_ResetEMailSettings_Title%>" />
            </Template_Title> 
            <Template_Description>
               <asp:Literal ID="Literal4" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_Section_ResetEMailSettings_Description%>" />
            </Template_Description>

            <Template_InputFormControls>
                <wssuc:InputFormControl ID="InputFormControl1" runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailSubjectLine_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" Columns="40" ID="txtResetEMailSubjectLine"/>
                        <SharePoint:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator1" runat="server" Display="Dynamic" SetFocusOnError="false" ControlToValidate="txtResetEMailSubjectLine" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailSubjectLine_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="InputFormControl2" runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailBody_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" Columns="40" rows="10" TextMode = "MultiLine" RichText="false" ID="txtResetEMailBody" />
                        <asp:CheckBox runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailIsHTML_Text%>" ID="chkResetEMailIsHTML"/>
                        <SharePoint:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator2" runat="server" Display="Dynamic" SetFocusOnError="false" ControlToValidate="txtResetEMailBody" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_EMailBody_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:ButtonSection runat="server" ID="sectionBottomButtons">
            <Template_Buttons>
                <asp:Button UseSubmitBehavior="false" 
		            runat="server" 
                    OnClick="btnOK_Click"
                    CssClass="ms-ButtonHeightWidth"
		            Text="<%$Resources:wss,multipages_savebutton_text%>" 
		            accesskey="<%$Resources:wss,multipages_savebutton_accesskey%>"/>
            </Template_Buttons>
        </wssuc:ButtonSection>

    </table>

    <asp:Label runat="server" Text="(c)2012 ArmgaSys, Inc.  This is an open source project, visit sp2010fba.codeplex.com for for full details." CssClass="text-align:center" />

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
<asp:Literal ID="Literal5" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_PageTitle%>" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
<asp:Literal ID="Literal6" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_Settings_TitleTitle%>" />
</asp:Content>
